<!--商铺列表头部-->
<div class=" shop_list_top" >
    <span class="shop_top_logo">
         <img src="images/logo.png" ng-click="vm.back()"  >
          <span class="shop_top_text"> 版本升级 </span>
     </span>
</div>
<div class="shop_list">
<!--筛选区域-->
<div class="shop_list_carea">
        <div class="pull-left shop_left">

            <div class="city-picker-select pull-left"></div>

                   <div class="pull-left shop_left_ver">
                       <label>
                           版本号
                           <select name="" id="">
                               <option value="">请选择</option>
                           </select>
                       </label>
                   </div>
              </div>
        <div class="pull-right shop_right" >
            <ul >
                <ul >
                    <li> 硬件版本：{{dev.hardv}}</li>
                    <li> 软件版本：{{dev.softv}}</li>
            </ul>
        </div>
           <span  class="shop_right_text pull-right">
                当前最新版本号
               <img src="images/new.png" alt="" style="margin-top: -18px">
               </span>

    </div>


<!--选择搜索区域-->
<div class="shop_list_select"  >
            <div class="pull-left" >
                <input type="text" class=" form-control shop_select_sear" ng-model="vm.search" placeholder="请输入要搜索的店铺">
            </div>
               <div class="pull-right shop_select_right">
                   <label ng-show="vm.visiable">
                       <input type="checkbox"ng-model="vm.currentmaster" ng-click="vm.prepare_currentall(vm.currentmaster)" id="cur_chb" ng-disabled="vm.master==true" >选择当前页
                   </label>
                   <label ng-show="vm.visiable">
                       <input type="checkbox" ng-model="vm.master" ng-click="vm.prepare_alldata(vm.master)" id="all_chb" ng-disabled="vm.currentmaster==true"  >全选
                   </label>
                   <button type="button" ng-show="vm.visiable" ng-click="vm.update()"  ng-disabled="vm.selection_bind.length==0" class="shop_select_verC">确定升级</button>
                   <button  type="submit" ng-click="vm.upBatch()" class="shop_select_numver">批量升级</button>
               </div>

</div>
<!--商铺列表区域-->
<div class="shopList_list">

            <table class="table table-hover shop_list_table" style="margin-top: 7px;">
                <thead>
                <tr class="shop_table_tr">
                    <th></th>
                    <th>店铺图片</th>
                    <th >店铺名</th>
                    <th>地址</th>
                    <th>所属区域</th>
                    <th>硬件版本</th>
                    <th>软件版本</th>
                    <th>操作</th>

                </tr>
                </thead>
                <tbody>
                <tr dir-paginate="shop in vm.shopList|filter:vm.search| filter:key | itemsPerPage:vm.pageSize" current-page="vm.currentPage" >
                    <td>
                        <input type="checkbox" id="{{shop.shopid}}" ng-model="shop.checked" ng-click="vm.prepare_data(shop)" name="chb"  ng-show="vm.visiable" class="shop_list_check">
                    </td>
                    <td ng-click="vm.devDetail(shop.shopid)"><img class='obj' ng-src="{{}}"/></td>
                    <td ng-click="vm.devDetail(shop.shopid)"> {{shop.shopname}} </td>
                    <td ng-click="vm.devDetail(shop.shopid)"> {{shop.shopaddress}} </td>
                    <td ng-click="vm.devDetail(shop.shopid)"> {{shop.contact}}</td>
                    <td ng-click="vm.devDetail(shop.shopid)"></td>
                    <td ng-click="vm.devDetail(shop.shopid)"></td>
                    <td> <button  ng-click="vm.verPop(shop)" class="shop_table_verbtn">升级设备</button> </td>
                </tr>
                </tbody>
            </table>

</div>
<!-- 分页按钮 -->
<!--on-page-change="myMethod(newPageNumber, oldPageNumber)" 当前页数，之前页数-->
<div>
    <div class="text-center">
        <dir-pagination-controls boundary-links="true" on-page-change="vm.pageChangeHandler(newPageNumber)"
                                 template-url="tpls/pagination/dirPagination.tpl.html"></dir-pagination-controls>
    </div>
</div>
<!--  分页按钮结束 -->
<!--弹出区域开始-->
<!--遮罩层-->
<div class="shopBgPop"></div>
<!--弹出框-->
    <div class="shopPop">
        <span class="pull-right shopPop_close" ng-click="vm.cancel()">X</span>
    <h4 class="text-center" style="padding-top: 15px"> 升级店铺内所以设备到最新版本？ </h4>
    <input type="button" value="取消" ng-click="vm.cancel()" class="btn shopCancel"/>
    <input type="button" value="确定" ng-click="vm.upCon()" class="btn shopOk"/>
    </div>
 <!--弹出区域结束-->

</div>





